<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SimpleWindow: ListView.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SimpleWindow
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('_list_view_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">ListView.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &quot;ItemsControl.h&quot;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &quot;List.h&quot;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#include &lt;CommCtrl.h&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="keyword">namespace </span>sw</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span>{</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span>    <span class="keyword">enum class</span> ListViewColumnAlignment {</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span>        Left   = LVCFMT_LEFT,   <span class="comment">// 左对齐</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span>        Right  = LVCFMT_RIGHT,  <span class="comment">// 右对齐</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span>        Center = LVCFMT_CENTER, <span class="comment">// 居中</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>    };</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="foldopen" id="foldopen00021" data-start="{" data-end="};">
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="structsw_1_1_list_view_column.html">   21</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="structsw_1_1_list_view_column.html">ListViewColumn</a> {</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="structsw_1_1_list_view_column.html#a2fd382151fa269ec5f5042232cfb84f8">   25</a></span>        std::wstring <a class="code hl_variable" href="structsw_1_1_list_view_column.html#a2fd382151fa269ec5f5042232cfb84f8">header</a>;</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="structsw_1_1_list_view_column.html#abd8ec9f51310be92ec1ff113314e5257">   30</a></span>        <span class="keywordtype">double</span> <a class="code hl_variable" href="structsw_1_1_list_view_column.html#abd8ec9f51310be92ec1ff113314e5257">width</a>;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structsw_1_1_list_view_column.html#a073e675567add518aa85b5356d472cf9">   35</a></span>        ListViewColumnAlignment <a class="code hl_variable" href="structsw_1_1_list_view_column.html#a073e675567add518aa85b5356d472cf9">alignment</a> = ListViewColumnAlignment::Left;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>        <a class="code hl_struct" href="structsw_1_1_list_view_column.html">ListViewColumn</a>(<span class="keyword">const</span> std::wstring &amp;<a class="code hl_variable" href="structsw_1_1_list_view_column.html#a2fd382151fa269ec5f5042232cfb84f8">header</a>);</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>        <a class="code hl_struct" href="structsw_1_1_list_view_column.html">ListViewColumn</a>(<span class="keyword">const</span> std::wstring &amp;<a class="code hl_variable" href="structsw_1_1_list_view_column.html#a2fd382151fa269ec5f5042232cfb84f8">header</a>, <span class="keywordtype">double</span> <a class="code hl_variable" href="structsw_1_1_list_view_column.html#abd8ec9f51310be92ec1ff113314e5257">width</a>);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>        <a class="code hl_struct" href="structsw_1_1_list_view_column.html">ListViewColumn</a>(<span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">LVCOLUMNW</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">lvc</a>);</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>        <span class="keyword">operator</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">LVCOLUMNW</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>    };</div>
</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="foldopen" id="foldopen00046" data-start="{" data-end="};">
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html">   46</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classsw_1_1_list_view.html">ListView</a> : <span class="keyword">public</span> <a class="code hl_class" href="classsw_1_1_items_control.html">ItemsControl</a>&lt;StrList&gt;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>    {</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a0b84ba1066f16317e48629059b94ded8">   52</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">ReadOnlyProperty&lt;int&gt;</a> <a class="code hl_variable" href="classsw_1_1_list_view.html#a0b84ba1066f16317e48629059b94ded8">ColumnsCount</a>;</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#ab3b05ee1d7f10c5abcc7b31facc5964b">   57</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_list_view.html#ab3b05ee1d7f10c5abcc7b31facc5964b">GridLines</a>;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a07b5ecb6c37936ae7b6cef9d68d7a541">   62</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_list_view.html#a07b5ecb6c37936ae7b6cef9d68d7a541">MultiSelect</a>;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#ae1e499b6f04912769eb8f4fe732ad35c">   67</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">ReadOnlyProperty&lt;int&gt;</a> <a class="code hl_variable" href="classsw_1_1_list_view.html#ae1e499b6f04912769eb8f4fe732ad35c">SelectedCount</a>;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a6708aba4c056b8729c66fe39b4035b7b">   72</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_list_view.html#a6708aba4c056b8729c66fe39b4035b7b">CheckBoxes</a>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a4158ee431cd207fc45ef4212baf7b37a">   77</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">ReadOnlyProperty&lt;int&gt;</a> <a class="code hl_variable" href="classsw_1_1_list_view.html#a4158ee431cd207fc45ef4212baf7b37a">TopIndex</a>;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a6f491872e0416f1ab65cdb3866009293">   83</a></span>        <a class="code hl_function" href="classsw_1_1_list_view.html#a6f491872e0416f1ab65cdb3866009293">ListView</a>();</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a5c953126fc14e93dc7479efc03ceb4f9">   89</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a5c953126fc14e93dc7479efc03ceb4f9">GetItemsCount</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a65e4a2137e9cf7509adff246248732cc">   94</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a65e4a2137e9cf7509adff246248732cc">GetSelectedIndex</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a281ac94e46cb287611a25f78a3b91a06">   99</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a281ac94e46cb287611a25f78a3b91a06">SetSelectedIndex</a>(<span class="keywordtype">int</span> index) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a95013292cf5b588ff83ceeb4865a2993">  104</a></span>        <span class="keyword">virtual</span> <a class="code hl_class" href="classsw_1_1_list.html">StrList</a> <a class="code hl_function" href="classsw_1_1_list_view.html#a95013292cf5b588ff83ceeb4865a2993">GetSelectedItem</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a56b546d6ddeadd258522b2441ec9bcc4">  111</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a56b546d6ddeadd258522b2441ec9bcc4">SetBackColor</a>(<a class="code hl_struct" href="structsw_1_1_color.html">Color</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">color</a>, <span class="keywordtype">bool</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">redraw</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span> </div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#acb06dc6710aafdb341e75fd92fc08af1">  118</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#acb06dc6710aafdb341e75fd92fc08af1">SetTextColor</a>(<a class="code hl_struct" href="structsw_1_1_color.html">Color</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">color</a>, <span class="keywordtype">bool</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">redraw</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a3d46f549079a2f75656de1e5903671cf">  125</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a3d46f549079a2f75656de1e5903671cf">OnNotify</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">NMHDR</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">pNMHDR</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#aaad9cba6a7d80f3862720d2771cb28dc">  130</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#aaad9cba6a7d80f3862720d2771cb28dc">OnNotified</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">NMHDR</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">pNMHDR</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a9f6978e162ff25d4328cad8496205ee9">  135</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a9f6978e162ff25d4328cad8496205ee9">OnItemChanged</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">NMLISTVIEW</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">pNMLV</a>);</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a5b4b18df705396deeb3a2dc2fb0048cc">  141</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a5b4b18df705396deeb3a2dc2fb0048cc">OnCheckStateChanged</a>(<span class="keywordtype">int</span> index);</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span> </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#aebad3b5c7fafae2aa71f811beecfaeb8">  146</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#aebad3b5c7fafae2aa71f811beecfaeb8">OnHeaderItemClicked</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">NMHEADERW</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">pNMH</a>);</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a294d8b15fd8755f4b6aa303092d5290a">  151</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a294d8b15fd8755f4b6aa303092d5290a">OnHeaderItemDoubleClicked</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">NMHEADERW</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">pNMH</a>);</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a60fce24f88dc39ab4b25a24edd44d940">  156</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a60fce24f88dc39ab4b25a24edd44d940">OnItemClicked</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">NMITEMACTIVATE</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">pNMIA</a>);</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#aad1b3b081bf328350b93f1cfba68cd0e">  161</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#aad1b3b081bf328350b93f1cfba68cd0e">OnItemDoubleClicked</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">NMITEMACTIVATE</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">pNMIA</a>);</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#abb85e686c9e461b12b9184763a5bc76a">  167</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#abb85e686c9e461b12b9184763a5bc76a">Clear</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a3c9979454e598336e819586d0cd8ea33">  173</a></span>        <span class="keyword">virtual</span> <a class="code hl_class" href="classsw_1_1_list.html">StrList</a> <a class="code hl_function" href="classsw_1_1_list_view.html#a3c9979454e598336e819586d0cd8ea33">GetItemAt</a>(<span class="keywordtype">int</span> index) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span> </div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a5b7f4ebd627de9cfcbfc9fa87dce183c">  180</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a5b7f4ebd627de9cfcbfc9fa87dce183c">AddItem</a>(<span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_list.html">StrList</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">item</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a34425690bf39e914861b2211004c2ce1">  188</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a34425690bf39e914861b2211004c2ce1">InsertItem</a>(<span class="keywordtype">int</span> index, <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_list.html">StrList</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">item</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span> </div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#ab3fba4c9cb19eb933b132ba4a7694cac">  196</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#ab3fba4c9cb19eb933b132ba4a7694cac">UpdateItem</a>(<span class="keywordtype">int</span> index, <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_list.html">StrList</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">newValue</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span> </div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#aa8794834f72d435f8b6dee8b34d1d59c">  203</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#aa8794834f72d435f8b6dee8b34d1d59c">RemoveItemAt</a>(<span class="keywordtype">int</span> index) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span> </div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#ab9a96bf777e2b3662007f17b274a4a2e">  211</a></span>        std::wstring <a class="code hl_function" href="classsw_1_1_list_view.html#ab9a96bf777e2b3662007f17b274a4a2e">GetItemAt</a>(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col);</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span> </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#ad51ae3ae4b5cf3b60d56867738a8b960">  220</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#ad51ae3ae4b5cf3b60d56867738a8b960">UpdateItem</a>(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keyword">const</span> std::wstring &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">newValue</a>);</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span> </div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#abdc6fdb5bbe352fa0cfed2587260f6fc">  227</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#abdc6fdb5bbe352fa0cfed2587260f6fc">AddColumn</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structsw_1_1_list_view_column.html">ListViewColumn</a> &amp;column);</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span> </div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a46f3f478e2f3bd4c1b3518eefd2a75fe">  234</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a46f3f478e2f3bd4c1b3518eefd2a75fe">AddColumn</a>(<span class="keyword">const</span> std::wstring &amp;header);</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno">  235</span> </div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a985c48bef310cdcb10b722c9aec8ebbf">  242</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a985c48bef310cdcb10b722c9aec8ebbf">InsertColumn</a>(<span class="keywordtype">int</span> index, <span class="keyword">const</span> <a class="code hl_struct" href="structsw_1_1_list_view_column.html">ListViewColumn</a> &amp;column);</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span> </div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a0abf70d4eee217e060b84686f30b8a09">  250</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a0abf70d4eee217e060b84686f30b8a09">InsertColumn</a>(<span class="keywordtype">int</span> index, <span class="keyword">const</span> std::wstring &amp;header);</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span> </div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a8ee454faaa1351526c069174589f5403">  257</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a8ee454faaa1351526c069174589f5403">SetColumnHeader</a>(<span class="keywordtype">int</span> index, <span class="keyword">const</span> std::wstring &amp;header);</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno">  258</span> </div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a35e0f172950516ae97ab0bbbfddbab14">  264</a></span>        <span class="keywordtype">double</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a35e0f172950516ae97ab0bbbfddbab14">GetColumnWidth</a>(<span class="keywordtype">int</span> index);</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span> </div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a71c4c33a03aa2811a3fee6d7a9d0c2c3">  272</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a71c4c33a03aa2811a3fee6d7a9d0c2c3">SetColumnWidth</a>(<span class="keywordtype">int</span> index, <span class="keywordtype">double</span> width);</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span> </div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a739a22388145f5bdc9d694e0a7cdf060">  279</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#a739a22388145f5bdc9d694e0a7cdf060">RemoveColumnAt</a>(<span class="keywordtype">int</span> index);</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno">  280</span> </div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#a4ac92414b9424dc44aad14ed796ed943">  284</a></span>        <a class="code hl_class" href="classsw_1_1_dictionary.html">List&lt;int&gt;</a> <a class="code hl_function" href="classsw_1_1_list_view.html#a4ac92414b9424dc44aad14ed796ed943">GetSelectedIndices</a>();</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno">  285</span> </div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#ac4de7a880d513d5fe78d9600304979d2">  289</a></span>        <a class="code hl_class" href="classsw_1_1_dictionary.html">List&lt;int&gt;</a> <a class="code hl_function" href="classsw_1_1_list_view.html#ac4de7a880d513d5fe78d9600304979d2">GetCheckedIndices</a>();</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span> </div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#ac34d4382c8e43346da5a67ebcf78f97f">  294</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_list_view.html#ac34d4382c8e43346da5a67ebcf78f97f">GetItemCheckState</a>(<span class="keywordtype">int</span> index);</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno">  295</span> </div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#affa13393f8c08a2e1f1b9b4018ceef3f">  299</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_list_view.html#affa13393f8c08a2e1f1b9b4018ceef3f">SetItemCheckState</a>(<span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">value</a>);</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno">  300</span> </div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"><a class="line" href="classsw_1_1_list_view.html#aaa8be22cc91981886a241ca44c932c65">  305</a></span>        <span class="keywordtype">int</span> <a class="code hl_function" href="classsw_1_1_list_view.html#aaa8be22cc91981886a241ca44c932c65">GetItemIndexFromPoint</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structsw_1_1_point.html">Point</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">point</a>);</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span> </div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span>        <span class="keywordtype">int</span> _GetRowCount();</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span> </div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span>        <span class="keywordtype">int</span> _GetColCount();</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span> </div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span>        <a class="code hl_class" href="classsw_1_1_dictionary.html">DWORD</a> _GetExtendedListViewStyle();</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno">  322</span> </div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno">  327</span>        <a class="code hl_class" href="classsw_1_1_dictionary.html">DWORD</a> _SetExtendedListViewStyle(<a class="code hl_class" href="classsw_1_1_dictionary.html">DWORD</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">style</a>);</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span>    };</div>
</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span>};</div>
<div class="ttc" id="aclasssw_1_1_dictionary_html"><div class="ttname"><a href="classsw_1_1_dictionary.html">sw::Dictionary</a></div><div class="ttdoc">字典类，内部维护了一个指向std::map的智能指针</div><div class="ttdef"><b>Definition</b> Dictionary.h:24</div></div>
<div class="ttc" id="aclasssw_1_1_items_control_html"><div class="ttname"><a href="classsw_1_1_items_control.html">sw::ItemsControl</a></div><div class="ttdoc">表示可用于呈现一组项的控件</div><div class="ttdef"><b>Definition</b> ItemsControl.h:20</div></div>
<div class="ttc" id="aclasssw_1_1_list_html"><div class="ttname"><a href="classsw_1_1_list.html">sw::List</a></div><div class="ttdoc">列表类，内部维护了一个指向std::vector的智能指针</div><div class="ttdef"><b>Definition</b> List.h:24</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html"><div class="ttname"><a href="classsw_1_1_list_view.html">sw::ListView</a></div><div class="ttdoc">列表视图</div><div class="ttdef"><b>Definition</b> ListView.h:47</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a07b5ecb6c37936ae7b6cef9d68d7a541"><div class="ttname"><a href="classsw_1_1_list_view.html#a07b5ecb6c37936ae7b6cef9d68d7a541">sw::ListView::MultiSelect</a></div><div class="ttdeci">const Property&lt; bool &gt; MultiSelect</div><div class="ttdoc">是否允许多选</div><div class="ttdef"><b>Definition</b> ListView.h:62</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a0abf70d4eee217e060b84686f30b8a09"><div class="ttname"><a href="classsw_1_1_list_view.html#a0abf70d4eee217e060b84686f30b8a09">sw::ListView::InsertColumn</a></div><div class="ttdeci">bool InsertColumn(int index, const std::wstring &amp;header)</div><div class="ttdoc">添加新的列到指定索引</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a0b84ba1066f16317e48629059b94ded8"><div class="ttname"><a href="classsw_1_1_list_view.html#a0b84ba1066f16317e48629059b94ded8">sw::ListView::ColumnsCount</a></div><div class="ttdeci">const ReadOnlyProperty&lt; int &gt; ColumnsCount</div><div class="ttdoc">列数</div><div class="ttdef"><b>Definition</b> ListView.h:52</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a281ac94e46cb287611a25f78a3b91a06"><div class="ttname"><a href="classsw_1_1_list_view.html#a281ac94e46cb287611a25f78a3b91a06">sw::ListView::SetSelectedIndex</a></div><div class="ttdeci">virtual void SetSelectedIndex(int index) override</div><div class="ttdoc">设置选中项索引</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a294d8b15fd8755f4b6aa303092d5290a"><div class="ttname"><a href="classsw_1_1_list_view.html#a294d8b15fd8755f4b6aa303092d5290a">sw::ListView::OnHeaderItemDoubleClicked</a></div><div class="ttdeci">virtual void OnHeaderItemDoubleClicked(NMHEADERW *pNMH)</div><div class="ttdoc">鼠标左键双击列标题时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a34425690bf39e914861b2211004c2ce1"><div class="ttname"><a href="classsw_1_1_list_view.html#a34425690bf39e914861b2211004c2ce1">sw::ListView::InsertItem</a></div><div class="ttdeci">virtual bool InsertItem(int index, const StrList &amp;item) override</div><div class="ttdoc">添加子项到指定索引</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a35e0f172950516ae97ab0bbbfddbab14"><div class="ttname"><a href="classsw_1_1_list_view.html#a35e0f172950516ae97ab0bbbfddbab14">sw::ListView::GetColumnWidth</a></div><div class="ttdeci">double GetColumnWidth(int index)</div><div class="ttdoc">获取指定列的宽度</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a3c9979454e598336e819586d0cd8ea33"><div class="ttname"><a href="classsw_1_1_list_view.html#a3c9979454e598336e819586d0cd8ea33">sw::ListView::GetItemAt</a></div><div class="ttdeci">virtual StrList GetItemAt(int index) override</div><div class="ttdoc">获取指定索引处子项的值</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a3d46f549079a2f75656de1e5903671cf"><div class="ttname"><a href="classsw_1_1_list_view.html#a3d46f549079a2f75656de1e5903671cf">sw::ListView::OnNotify</a></div><div class="ttdeci">virtual bool OnNotify(NMHDR *pNMHDR) override</div><div class="ttdoc">接收到WM_NOTIFY后调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a4158ee431cd207fc45ef4212baf7b37a"><div class="ttname"><a href="classsw_1_1_list_view.html#a4158ee431cd207fc45ef4212baf7b37a">sw::ListView::TopIndex</a></div><div class="ttdeci">const ReadOnlyProperty&lt; int &gt; TopIndex</div><div class="ttdoc">当前列表框页面第一个子项的索引</div><div class="ttdef"><b>Definition</b> ListView.h:77</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a46f3f478e2f3bd4c1b3518eefd2a75fe"><div class="ttname"><a href="classsw_1_1_list_view.html#a46f3f478e2f3bd4c1b3518eefd2a75fe">sw::ListView::AddColumn</a></div><div class="ttdeci">bool AddColumn(const std::wstring &amp;header)</div><div class="ttdoc">添加新的列</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a4ac92414b9424dc44aad14ed796ed943"><div class="ttname"><a href="classsw_1_1_list_view.html#a4ac92414b9424dc44aad14ed796ed943">sw::ListView::GetSelectedIndices</a></div><div class="ttdeci">List&lt; int &gt; GetSelectedIndices()</div><div class="ttdoc">获取所有选中项的索引</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a56b546d6ddeadd258522b2441ec9bcc4"><div class="ttname"><a href="classsw_1_1_list_view.html#a56b546d6ddeadd258522b2441ec9bcc4">sw::ListView::SetBackColor</a></div><div class="ttdeci">virtual void SetBackColor(Color color, bool redraw) override</div><div class="ttdoc">设置背景颜色</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a5b4b18df705396deeb3a2dc2fb0048cc"><div class="ttname"><a href="classsw_1_1_list_view.html#a5b4b18df705396deeb3a2dc2fb0048cc">sw::ListView::OnCheckStateChanged</a></div><div class="ttdeci">virtual void OnCheckStateChanged(int index)</div><div class="ttdoc">复选框选中状态发生改变</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a5b7f4ebd627de9cfcbfc9fa87dce183c"><div class="ttname"><a href="classsw_1_1_list_view.html#a5b7f4ebd627de9cfcbfc9fa87dce183c">sw::ListView::AddItem</a></div><div class="ttdeci">virtual bool AddItem(const StrList &amp;item) override</div><div class="ttdoc">添加新的子项</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a5c953126fc14e93dc7479efc03ceb4f9"><div class="ttname"><a href="classsw_1_1_list_view.html#a5c953126fc14e93dc7479efc03ceb4f9">sw::ListView::GetItemsCount</a></div><div class="ttdeci">virtual int GetItemsCount() override</div><div class="ttdoc">获取子项数</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a60fce24f88dc39ab4b25a24edd44d940"><div class="ttname"><a href="classsw_1_1_list_view.html#a60fce24f88dc39ab4b25a24edd44d940">sw::ListView::OnItemClicked</a></div><div class="ttdeci">virtual void OnItemClicked(NMITEMACTIVATE *pNMIA)</div><div class="ttdoc">鼠标左键单击某一项时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a65e4a2137e9cf7509adff246248732cc"><div class="ttname"><a href="classsw_1_1_list_view.html#a65e4a2137e9cf7509adff246248732cc">sw::ListView::GetSelectedIndex</a></div><div class="ttdeci">virtual int GetSelectedIndex() override</div><div class="ttdoc">选中项的索引，当无选中项时为-1</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a6708aba4c056b8729c66fe39b4035b7b"><div class="ttname"><a href="classsw_1_1_list_view.html#a6708aba4c056b8729c66fe39b4035b7b">sw::ListView::CheckBoxes</a></div><div class="ttdeci">const Property&lt; bool &gt; CheckBoxes</div><div class="ttdoc">是否在第一列显示复选框</div><div class="ttdef"><b>Definition</b> ListView.h:72</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a6f491872e0416f1ab65cdb3866009293"><div class="ttname"><a href="classsw_1_1_list_view.html#a6f491872e0416f1ab65cdb3866009293">sw::ListView::ListView</a></div><div class="ttdeci">ListView()</div><div class="ttdoc">初始化ListView</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a71c4c33a03aa2811a3fee6d7a9d0c2c3"><div class="ttname"><a href="classsw_1_1_list_view.html#a71c4c33a03aa2811a3fee6d7a9d0c2c3">sw::ListView::SetColumnWidth</a></div><div class="ttdeci">bool SetColumnWidth(int index, double width)</div><div class="ttdoc">设置指定列的宽度</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a739a22388145f5bdc9d694e0a7cdf060"><div class="ttname"><a href="classsw_1_1_list_view.html#a739a22388145f5bdc9d694e0a7cdf060">sw::ListView::RemoveColumnAt</a></div><div class="ttdeci">bool RemoveColumnAt(int index)</div><div class="ttdoc">移除指定列</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a8ee454faaa1351526c069174589f5403"><div class="ttname"><a href="classsw_1_1_list_view.html#a8ee454faaa1351526c069174589f5403">sw::ListView::SetColumnHeader</a></div><div class="ttdeci">bool SetColumnHeader(int index, const std::wstring &amp;header)</div><div class="ttdoc">设置指定列的标题</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a95013292cf5b588ff83ceeb4865a2993"><div class="ttname"><a href="classsw_1_1_list_view.html#a95013292cf5b588ff83ceeb4865a2993">sw::ListView::GetSelectedItem</a></div><div class="ttdeci">virtual StrList GetSelectedItem() override</div><div class="ttdoc">获取选中项</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a985c48bef310cdcb10b722c9aec8ebbf"><div class="ttname"><a href="classsw_1_1_list_view.html#a985c48bef310cdcb10b722c9aec8ebbf">sw::ListView::InsertColumn</a></div><div class="ttdeci">bool InsertColumn(int index, const ListViewColumn &amp;column)</div><div class="ttdoc">添加新的列到指定索引</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_a9f6978e162ff25d4328cad8496205ee9"><div class="ttname"><a href="classsw_1_1_list_view.html#a9f6978e162ff25d4328cad8496205ee9">sw::ListView::OnItemChanged</a></div><div class="ttdeci">virtual void OnItemChanged(NMLISTVIEW *pNMLV)</div><div class="ttdoc">列表项某些属性发生变化时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_aa8794834f72d435f8b6dee8b34d1d59c"><div class="ttname"><a href="classsw_1_1_list_view.html#aa8794834f72d435f8b6dee8b34d1d59c">sw::ListView::RemoveItemAt</a></div><div class="ttdeci">virtual bool RemoveItemAt(int index) override</div><div class="ttdoc">移除指定索引处的子项</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_aaa8be22cc91981886a241ca44c932c65"><div class="ttname"><a href="classsw_1_1_list_view.html#aaa8be22cc91981886a241ca44c932c65">sw::ListView::GetItemIndexFromPoint</a></div><div class="ttdeci">int GetItemIndexFromPoint(const Point &amp;point)</div><div class="ttdoc">获取指定点处子项的索引</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_aaad9cba6a7d80f3862720d2771cb28dc"><div class="ttname"><a href="classsw_1_1_list_view.html#aaad9cba6a7d80f3862720d2771cb28dc">sw::ListView::OnNotified</a></div><div class="ttdeci">virtual void OnNotified(NMHDR *pNMHDR) override</div><div class="ttdoc">父窗口接收到WM_NOTIFY后调用发出通知控件的该函数</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_aad1b3b081bf328350b93f1cfba68cd0e"><div class="ttname"><a href="classsw_1_1_list_view.html#aad1b3b081bf328350b93f1cfba68cd0e">sw::ListView::OnItemDoubleClicked</a></div><div class="ttdeci">virtual void OnItemDoubleClicked(NMITEMACTIVATE *pNMIA)</div><div class="ttdoc">鼠标左键双击某一项调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_ab3b05ee1d7f10c5abcc7b31facc5964b"><div class="ttname"><a href="classsw_1_1_list_view.html#ab3b05ee1d7f10c5abcc7b31facc5964b">sw::ListView::GridLines</a></div><div class="ttdeci">const Property&lt; bool &gt; GridLines</div><div class="ttdoc">是否显示网格线</div><div class="ttdef"><b>Definition</b> ListView.h:57</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_ab3fba4c9cb19eb933b132ba4a7694cac"><div class="ttname"><a href="classsw_1_1_list_view.html#ab3fba4c9cb19eb933b132ba4a7694cac">sw::ListView::UpdateItem</a></div><div class="ttdeci">virtual bool UpdateItem(int index, const StrList &amp;newValue) override</div><div class="ttdoc">更新指定位置的子项</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_ab9a96bf777e2b3662007f17b274a4a2e"><div class="ttname"><a href="classsw_1_1_list_view.html#ab9a96bf777e2b3662007f17b274a4a2e">sw::ListView::GetItemAt</a></div><div class="ttdeci">std::wstring GetItemAt(int row, int col)</div><div class="ttdoc">获取指定位置处文本</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_abb85e686c9e461b12b9184763a5bc76a"><div class="ttname"><a href="classsw_1_1_list_view.html#abb85e686c9e461b12b9184763a5bc76a">sw::ListView::Clear</a></div><div class="ttdeci">virtual void Clear() override</div><div class="ttdoc">清空所有子项</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_abdc6fdb5bbe352fa0cfed2587260f6fc"><div class="ttname"><a href="classsw_1_1_list_view.html#abdc6fdb5bbe352fa0cfed2587260f6fc">sw::ListView::AddColumn</a></div><div class="ttdeci">bool AddColumn(const ListViewColumn &amp;column)</div><div class="ttdoc">添加新的列</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_ac34d4382c8e43346da5a67ebcf78f97f"><div class="ttname"><a href="classsw_1_1_list_view.html#ac34d4382c8e43346da5a67ebcf78f97f">sw::ListView::GetItemCheckState</a></div><div class="ttdeci">bool GetItemCheckState(int index)</div><div class="ttdoc">获取指定索引项的复选框是否选中</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_ac4de7a880d513d5fe78d9600304979d2"><div class="ttname"><a href="classsw_1_1_list_view.html#ac4de7a880d513d5fe78d9600304979d2">sw::ListView::GetCheckedIndices</a></div><div class="ttdeci">List&lt; int &gt; GetCheckedIndices()</div><div class="ttdoc">获取所有复选框选中的项的索引</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_acb06dc6710aafdb341e75fd92fc08af1"><div class="ttname"><a href="classsw_1_1_list_view.html#acb06dc6710aafdb341e75fd92fc08af1">sw::ListView::SetTextColor</a></div><div class="ttdeci">virtual void SetTextColor(Color color, bool redraw) override</div><div class="ttdoc">设置文本颜色</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_ad51ae3ae4b5cf3b60d56867738a8b960"><div class="ttname"><a href="classsw_1_1_list_view.html#ad51ae3ae4b5cf3b60d56867738a8b960">sw::ListView::UpdateItem</a></div><div class="ttdeci">bool UpdateItem(int row, int col, const std::wstring &amp;newValue)</div><div class="ttdoc">更新指定位置处文本</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_ae1e499b6f04912769eb8f4fe732ad35c"><div class="ttname"><a href="classsw_1_1_list_view.html#ae1e499b6f04912769eb8f4fe732ad35c">sw::ListView::SelectedCount</a></div><div class="ttdeci">const ReadOnlyProperty&lt; int &gt; SelectedCount</div><div class="ttdoc">多选状态下可通过该属性获取选中项的个数</div><div class="ttdef"><b>Definition</b> ListView.h:67</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_aebad3b5c7fafae2aa71f811beecfaeb8"><div class="ttname"><a href="classsw_1_1_list_view.html#aebad3b5c7fafae2aa71f811beecfaeb8">sw::ListView::OnHeaderItemClicked</a></div><div class="ttdeci">virtual void OnHeaderItemClicked(NMHEADERW *pNMH)</div><div class="ttdoc">鼠标左键单击列标题时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_list_view_html_affa13393f8c08a2e1f1b9b4018ceef3f"><div class="ttname"><a href="classsw_1_1_list_view.html#affa13393f8c08a2e1f1b9b4018ceef3f">sw::ListView::SetItemCheckState</a></div><div class="ttdeci">void SetItemCheckState(int index, bool value)</div><div class="ttdoc">设置指定索引项复选框的选中状态</div></div>
<div class="ttc" id="astructsw_1_1_color_html"><div class="ttname"><a href="structsw_1_1_color.html">sw::Color</a></div><div class="ttdoc">颜色</div><div class="ttdef"><b>Definition</b> Color.h:12</div></div>
<div class="ttc" id="astructsw_1_1_list_view_column_html"><div class="ttname"><a href="structsw_1_1_list_view_column.html">sw::ListViewColumn</a></div><div class="ttdoc">列表视图的列信息</div><div class="ttdef"><b>Definition</b> ListView.h:21</div></div>
<div class="ttc" id="astructsw_1_1_list_view_column_html_a073e675567add518aa85b5356d472cf9"><div class="ttname"><a href="structsw_1_1_list_view_column.html#a073e675567add518aa85b5356d472cf9">sw::ListViewColumn::alignment</a></div><div class="ttdeci">ListViewColumnAlignment alignment</div><div class="ttdoc">对齐方式</div><div class="ttdef"><b>Definition</b> ListView.h:35</div></div>
<div class="ttc" id="astructsw_1_1_list_view_column_html_a2fd382151fa269ec5f5042232cfb84f8"><div class="ttname"><a href="structsw_1_1_list_view_column.html#a2fd382151fa269ec5f5042232cfb84f8">sw::ListViewColumn::header</a></div><div class="ttdeci">std::wstring header</div><div class="ttdoc">列标题</div><div class="ttdef"><b>Definition</b> ListView.h:25</div></div>
<div class="ttc" id="astructsw_1_1_list_view_column_html_abd8ec9f51310be92ec1ff113314e5257"><div class="ttname"><a href="structsw_1_1_list_view_column.html#abd8ec9f51310be92ec1ff113314e5257">sw::ListViewColumn::width</a></div><div class="ttdeci">double width</div><div class="ttdoc">列宽度</div><div class="ttdef"><b>Definition</b> ListView.h:30</div></div>
<div class="ttc" id="astructsw_1_1_point_html"><div class="ttname"><a href="structsw_1_1_point.html">sw::Point</a></div><div class="ttdoc">表示相对于左上角的点坐标</div><div class="ttdef"><b>Definition</b> Point.h:11</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_01fcd3835fb4e7d9331b722d86291b65.html">sw</a></li><li class="navelem"><a class="el" href="dir_ed5f6ece24ffcc4307a76d27c2494db3.html">inc</a></li><li class="navelem"><b>ListView.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
